package com.bluemsun.naturallanguageprocessing.util;

import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.HashSet;

import static org.apache.commons.math3.analysis.FunctionUtils.add;

public class ExceptionMessageUtils {
    // 异常信息，字符串参数设置
    public static String setMessageParam(String msg,Object ...object){
        for (Object o : object) {
            msg = msg.replaceFirst("\\{([^}])*\\}", o.toString());
        }
        return msg;
    }
}
